package org.example.lotterysystem.service.enums;

public enum UserIdentityEnum {
    ADMIN("管理员"),
    NORMAL("普通用户");

    private final String message;

    UserIdentityEnum(String message) {
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public static UserIdentityEnum forName(String name){
        for(UserIdentityEnum userIdentityEnum:UserIdentityEnum.values()){
            if(userIdentityEnum.name().equalsIgnoreCase(name)){
                return userIdentityEnum;
            }
        }
        return null;
    }
}
